module.exports = {
  startApp(appPackageName) {
    while (true) {
      if (currentPackage() != appPackageName) {
        app.launch(appPackageName);

        sleep(1000);
      } else {
        break;
      }
    }
  },
  //模拟点击
  advclick(uiobject) {
    let rect = uiobject.bounds();
    click(rect.centerX(), rect.centerY());
  },
};
